<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <#include "../common.ftl" />
</head>
<body>
<form class="layui-form"  style="width:80%;">

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">客户名称</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input userName"
                   lay-verify="required" name="customerName"
                   placeholder="请输入客户公司名称">
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">产品名称</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" lay-verify="required" name="productName"
                   placeholder="请输入产品名称">
        </div>
    </div>
    <!--隐藏地址 -->
    <input type="hidden" name="customerAddress" id="customerAddress" value="">
    <div class="layui-form-item " id="area-picker">
        <div class="layui-form-label">地址</div>
        <div class="layui-input-inline" style="width: 18%">
            <select name="province" class="province-selector" data-value="" lay-filter="province-1">
                <option value="">请选择省</option>
            </select>
        </div>
        <div class="layui-input-inline" style="width: 18%">
            <select name="city" class="city-selector" data-value="" lay-filter="city-1">
                <option value="">请选择市</option>
            </select>
        </div>
        <div class="layui-input-inline" style="width: 18%">
            <select name="county" class="county-selector" data-value="" lay-filter="county-1">
                <option value="">请选择区</option>
            </select>
        </div>
        <input type="text" class="layui-input" style="width: 20%;" name="detailAddress" placeholder="详细地址">
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">数量</label>
        <div class="layui-input-block">
            <input type="number" class="layui-input" lay-verify="required" name="productCount"
                   oninput="if(value.length<1 )value=value.slice(0,0)"
                   placeholder="输入产品数量">
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">单价￥</label>
        <div class="layui-input-block">
            <input type="number" class="layui-input" lay-verify="required" name="productUnitPrice"
                   placeholder="单位(万元)">
        </div>
    </div>


    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">交付日期</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input" id="deliveryDate" name="deliveryDate"
                   placeholder="yyyy-MM-dd">
        </div>
    </div>


    <@shiro.user>
        <input type="hidden" name="empId" value="<@shiro.principal property="id"></@shiro.principal> ">
    </@shiro.user>

    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit=""
                    lay-filter="addBasic" id="addBasic">确认
            </button>
            <button class="layui-btn layui-btn-lg layui-btn-normal" type="reset" id="resetBtn">重置</button>
        </div>
    </div>


</form>
<script src="${ctx}/layuimini/js/sale/add.basic.js" charset="UTF-8"></script>
</body>
</head>
</html>

